{% extends "base.html" %}
{% block header %}
<link rel="stylesheet" type="text/css" href="/static/css/forms.css">

<script type="text/javascript">
function formReset(){
    $("#id_tname").val("");
    $("#id_attach").val("");
    $("#id_hid").val("");
    $("#id_detail").val("");
}

</script>
{% endblock %}

{% block menu %}

    {% include "flow-menu.html" %}
{% endblock %}

{% block content %}
 <div id="mon-tit">
    <div class="left">工作流平台 >> 任务添加</div>
</div>
    <div class="clr"></div>
    <hr>
    <h3 class='tit'>添加新任务</h3>
    <table width="100%">

     {% if form.errors %}
        <p style="color: red;">
            Please correct the error{{ form.errors|pluralize }} below.
        </p>
    {% endif %}

    <form name='task' action="" method="post"  enctype="multipart/form-data">
        <div class="module aligned">
        {% for field in form %}
            <div class="form-row">
            {{ field.errors }}
            {{ field.label_tag }} {{ field }}
            </div>
        {% endfor %}

        <div style='text-align:center'>
            <button type="button" style="margin-right:40px;width:80px" onclick="formReset()" >重置</button>
            <input type="submit" value="提交"  style="margin-right:40px;width:80px" />
        </div>
    </div>
    </form>

   </table>
{% endblock %}

